<template>
  <div>
    <div v-for="i in xiaoshuo" :key="i.id">
      <ul>
        <li v-if="i.status==1">{{ i.name }}+++++++++未审核</li>
        <li v-else-if="i.status==2">{{ i.name }}++++++++审核通过</li>
        <li v-else>{{ i.name }}++++++++审核通过</li>
      </ul>
    </div>
  </div>
</template>

<script>
import axios from 'axios'

export default {
  name: "show_xiaoshuo",
  data() {
    return {
      xiaoshuo: [],
      userid: localStorage.getItem('userid')
    }
  },
  methods: {
    show() {
      axios.get('/zuoye/xiaoshuo?userid=' + this.userid).then(res => {
        this.xiaoshuo = res.data.list
      })

    }
  },
  mounted() {
    this.show()
  }
}
</script>

<style scoped>

</style>